
import React, { Component } from 'react';
import {
  AppRegistry,
  View
} from 'react-native';

import Stage from './jsscript/Stage'
import SizeUtils from './jsscript/common/SizeUtils';
var Orientation = require('react-native-orientation');
class AppClient extends Component {
  constructor(props) {
    super(props);
    Orientation.lockToPortrait();
    // Orientation.addOrientationListener(this._orientationDidChange.bind(this));
  }
//   _orientationDidChange(orientation){
//   	console.log(AppClient);
//   if (orientation == 'LANDSCAPE') {
//     SizeUtils.changeLandscape();
//     } else {
//       //do something with portrait layout
//       SizeUtils.lockToPortrait();
//     }
// }

  render() {
    return <Stage />;
  }
};

AppRegistry.registerComponent('AppClient', () => AppClient);
